import 'package:connectivity_plus/connectivity_plus.dart';

/// Checks whether the device currently has a network connection.
Future<bool> hasNetworkConnection() async {
  final connectivityResult = await Connectivity().checkConnectivity();
  return !connectivityResult.contains(ConnectivityResult.none);
}
